<extend name="./public/frame.html"/>
<block name="content">
	<style>
		.layui-form-label{width: 10%;}
		.layui-input-block{margin-left: 12%;}
	</style>
	<h2 style="text-align: center;">车辆归属</h2>
	<form class="layui-form layui-form-pane1" method="post" >
		<input type="hidden" name="driver_id" value="{$data.driver_id}">
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>司机姓名</label>
			<div class="layui-input-inline">
			  <input type="text" name="driverName" value="{$data.driverName}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">司机姓名</div>
		</div>
	
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>身份证</label>
			<div class="layui-input-inline">
			  <input type="text" name="driverIdCode" value="{$data.driverIdCode}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">身份证</div>
		</div>
	
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>司机电话</label>
			<div class="layui-input-inline">
			  <input type="text" name="driverTel" value="{$data.driverTel}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">司机电话</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>车牌号码</label>
			<div class="layui-input-inline">
			  <input type="text" name="vehicleLicense" value="{$data.vehicleLicense}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">车牌号码</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>状态</label>
			<div class="layui-input-inline">
			  <input type="text" name="driverStatus" value="{$data.driverStatus}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">状态  ZG在岗  LG离岗</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>驾驶证扫描图片base64</label>
			<div class="layui-input-inline">
				<img src="{$data.licenceScan}" style="width: auto;height:100px">
			  <input type="hidden" name="licenceScan" value="{$data.licenceScan}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">驾驶证扫描图片base64 base64</div>
		</div>



		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>驾驶证有效期7️起</label>
			<div class="layui-input-inline">
			  <input type="text" name="licenceStartDate" value="{$data.licenceStartDate}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">驾驶证有效期7️起</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>驾驶证有效起结束</label>
			<div class="layui-input-inline">
			  <input type="text" name="licenceEndDate" value="{$data.licenceEndDate}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">驾驶证有效起结束</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>驾驶员婚宴状态</label>
			<div class="layui-input-inline">
			  <input type="text" name="marriage" value="{$data.marriage}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">驾驶员婚宴状态 0未婚1已婚</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>驾驶员外语能力</label>
			<div class="layui-input-inline">
			  <input type="text" name="languageLevel" value="{$data.languageLevel}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">驾驶员外语能力 eg 英语四级</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>合同有效起</label>
			<div class="layui-input-inline">
			  <input type="text" name="conStartDate" value="{$data.conStartDate}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">合同有效起</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>合同有效期止</label>
			<div class="layui-input-inline">
			  <input type="text" name="conEndDate" value="{$data.conEndDate}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">合同有效期止 </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>司机手机型号</label>
			<div class="layui-input-inline">
			  <input type="text" name="telType" value="{$data.telType}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">司机手机型号</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>司机手机运营商 </label>
			<div class="layui-input-inline">
			  <input type="text" name="telServiceName" value="{$data.telServiceName}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">司机手机运营商 CHINA_TELCOM CHINA_MOBILE CHINA_UNICOM </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>司机使用APP版本号</label>
			<div class="layui-input-inline">
			  <input type="text" name="version" value="{$data.version}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">司机使用APP版本号</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>地图类型</label>
			<div class="layui-input-inline">
			  <input type="text" name="mapType" value="{$data.mapType}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">地图类型 1百度地图2高德地图3腾讯地图4其他</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>紧急联系人</label>
			<div class="layui-input-inline">
			  <input type="text" name="emergencyContact" value="{$data.emergencyContact}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">紧急联系人</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>紧急联系人电话</label>
			<div class="layui-input-inline">
			  <input type="text" name="emergencyTel" value="{$data.emergencyTel}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">紧急联系人电话</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>紧急联系人地址</label>
			<div class="layui-input-inline">
			  <input type="text" name="emergencyAddr" value="{$data.emergencyAddr}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">紧急联系人地址</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>是否专职驾驶员</label>
			<div class="layui-input-inline">
			  <input type="text" name="fullTimeDriver" value="{$data.fullTimeDriver}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">是否专职驾驶员0否1是</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>户口登记名称</label>
			<div class="layui-input-inline">
			  <input type="text" name="driverCensus" value="{$data.driverCensus}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">户口登记名称</div>
		</div>
	
	


		







		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" layer-submit id="submits">立即提交</button>
	
			</div>
		</div>
	</form>

	<script>
		layui.use(['laydate', 'upload','form'], function () {
			var laydate = layui.laydate
				,upload = layui.upload
				,form = layui.form
			;
			upload.render({
				elem: '#test3'//这个就等同于点击
				,url: '/admin/Upload/base64EncodeImage'
				,before: function(obj){
				
				}
				,done:  function(res){ //上传后的回调
					console.log(res)		
					if(res.status == 1){
						$("#demo3").attr('src',res.base_img);
						$("#legalIdCardPhoto").val(res.base_img);
					
					  
					}else{
						layer.msg(res.msg,{'icon':2});
					}
				},
				error: function(e){
					console.log(e)
				  //layer.msg('上传失败');
				 
				}
			}); 
		
		
		});

	</script>
</block>
